package org.apache.ocean;

import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.SegmentReader;

/**
 *
 * @author jasonr
 */
public class SegmentIndexSearcher extends CIndexSearcher {
  public SegmentIndexSearcher(IndexReader segmentReader) {
    super((IndexReader)ClusterUtil.verifyClassType(segmentReader, "org.apache.lucene.index.SegmentReader"));
  }
  
  public String getSegmentName() {
  	SegmentReader segmentReader = (SegmentReader)getIndexReader();
  	return segmentReader.segment;
  }
}
